<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用CSS转换</title>
    <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
    <style>
        #soltion {
            cursor: pointer;
        }

        .fade-enter {
            opacity: 0;
        }

        .fade-enter-active {
            transition: opacity .5s;
        }
    </style>
</head>
<body>

<div id="app">
    <article>
        他们叫我水果。<br/>
        他们叫我鱼。<br/>
        他们叫我昆虫。<br/>
        但实际我都不是上面的叫法。
        <div id="soltion" @click="showSolution=true">我是一条
            <transition name="fade">
                <span id="dragon" v-show="showSolution">龙</span>
            </transition>
        </div>
    </article>
</div>

<script>
    new Vue({
        el: '#app',
        data: {
            showSolution: false
        }
    })
</script>

</body>
</html>